import axios from '@/utils/request';
import { Questions_Condition, Update_Question } from '@/type/watchQuestion';
//获取考试类型
export const _getExamType = () => axios.get('/api/exam/examType');
//获取试题类型
export const _getQuestionsType = () => axios.get('/api/exam/getQuestionsType');
//获取课程类型
export const _getSubject = () => axios.get('/api/exam/subject');
//获取所有试题
export const _getQuestionsList = () => axios.get('/api/exam/questions/new');
//按条件获取试题
export const _getQuestionsCondition = (params: Questions_Condition) =>
  axios.get('/api/exam/questions/condition', { params });
//更新试题
export const _updateQuestion = (params: Update_Question) =>
  axios.put('/api/exam/questions/update', params);

 
